package com.tbvtc.agriculturalcreditchainserver2025.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 农作物图片
 * </p>
 *
 * @author shiyuhao
 * @since 2025-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("crop_image")
@Schema(name="CropImage对象", description="农作物图片")
public class CropImage implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID,主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "农作物id")
    private Integer cropId;

    @Schema(description = "图片hash")
    private String imageHash;


}
